package bat.iog.hytool.pattern.behavioral.observer.demo02;

public class Client {
    public static void main(String[] args) {
        
        
        ConcreteSubject s = new ConcreteSubject();
        s.Attach(new ConcreteObserver(s,"X"));
        s.Attach(new ConcreteObserver(s,"Y"));
        s.Attach(new ConcreteObserver(s,"Z"));
        
        s.setSubjectStates("ABC");
        s.Notify();
        
    }
}
